﻿using IOC.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IOC.Framework.AutoFacExt;

namespace IOC.Services
{
    public class ApplePhone : IPhone
    {
        [CustomSelect]
        public IMicroPhone _microPhone { get; set; }
        public IHeadPhone _headPhone { get; set; }

        public IPower _power { get; set; }

        public IPower pw { get; set;}
        public ApplePhone(IHeadPhone iheadPhone) {
            Console.WriteLine($"{this.GetType().Name}带参数的构造函数被构造");
            this._headPhone = iheadPhone;
        }
        public void Call()
        {
            Console.WriteLine($"{this.GetType().Name}打电话");
        }

        public void init123(IPower power)
        {
            this._power = power;
            Console.WriteLine("init123");
        }
    }
}
